@import 'color';
/*====puzzle====*/

$pz_w: 100%;
$pz_h: 90;
$pz_mh: 250;

iframe {
  border: 0px;
}

.puzzle {
  position: relative;
  padding-top: 7vh;
  width: #{$pz_w};
  height: #{$pz_h}vh;
  z-index: 1;
  @media screen and (max-width: 780px) {
    top: 100px;
    height: 200px;
    padding-top: 0;
    //visibility: hidden;
    display: none;
  }
}

.lm {
  position: relative;
  width: #{$pz_w};
  height: #{$pz_h}vh;
  cursor: pointer;
  .img {
    position: relative;
    float: left;
    width: 50%;
    height: 100%;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
    }
  }
  @media screen and (max-width: 780px) {
    height: #{$pz_mh}px;
  }
  .rt {
    position: relative;
    width: #{$pz_w/2};
    height: #{$pz_h/2}vh;
    float: right;
    .img {
      width: 100%;

      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
      }
    }

    @media screen and (max-width: 780px) {
      height: #{$pz_mh/2}px;
    }
  }

  .rb1,
  .rb2 {
    position: relative;
    width: #{$pz_w / 2};
    height: #{$pz_h/2}vh;
    float: left;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
    }

    @media screen and (max-width: 780px) {
      height: #{$pz_mh/2}px;
    }
  }
}

/*-----puzzle end----*/
#news {
  width: 100%;
  zoom: 1;
  overflow: hidden;
}

.topline {
  position: relative;
  height: auto;
  min-height: 800px;
  display: block;
  overflow: hidden;
  zoom: 1;
  @media screen and (max-width: 780px) {
    // height: #{$pz_mh/2}px;
  }
}

$tl_sp: 4;
$tl_p_h: 6.5;
$tl_padding: 6;
.tl_panel {
  position: relative;
  width: 97%;
  left: 1%;
  height: #{$tl_p_h}rem;
  border-bottom: 1px #f2f2f2 dashed;
  zoom: 1;
  overflow: hidden;
  padding-top: 1rem;
  padding-bottom: 1rem;
  &:first-child {
    padding-top: 0;
  }
  &:last-child {
    // padding-bottom: 0;
    border-bottom: 0;
  }
  @media screen and (max-width: 780px) {
    padding-bottom: 1.3rem;
    // height: 11.5rem;
    // padding-top: 0;
    // padding-bottom: 0;
  }

  .left {
    float: left;
  }

  .right {
    float: right;
    @media screen and(max-width: 780px) {
      float: left;
      left: 0;
    }
  }
  div {
    position: relative;
    width: 50%;
    @media screen and (max-width: 780px) {
      width: 100%;
    }
  }

  .top_content {
    margin-top: 0.6rem;
    padding: 0.7rem 0.6rem;
    box-sizing: border-box;
    @media screen and (max-width: 780px) {
      margin-top: 0;
      top: 20px;
      padding: 0.3rem 0.4rem;
    }
    .title {
      //margin-left: #{$tl_sp}vw;
      width: 80%;
      height: auto;
      font-size: 0.5rem;
    }

    .info {
      //margin-left: #{$tl_sp}vw;
      margin-top: 1rem;
      width: 100%;
      line-height: 0.55rem;
      height: auto;
      font-size: 0.3rem;

      @media screen and (max-width: 780px) {
        margin-top: 0.3rem;
      }
    }
    .time {
      //margin-left: #{$tl_sp}vw;
      margin-top: 0.2rem;
      width: 80%;
      line-height: 2em;
      height: auto;
      font-size: 0.25rem;
    }
    .readBtn {
      //margin-left: #{$tl_sp}vw;
      width: 1.4rem;
      margin-top: 0.2rem;
      cursor: pointer;
      text-align: center;
      border: 1px solid;
      border-radius: 2px;
      height: 0.5rem;
      font-size: 0.2rem;
      line-height: 0.5rem;
      color: $lightGray;
      @media screen and (max-width: 780px) {
        display: none;
      }
    }
    .readBtn:hover {
      color: $darkInk;
    }
  }

  .tl_image {
    overflow: hidden;
    //border-radius: 5px;
    //height: #{$tl_p_h - 12}vh;
    //padding-top: 4vh;
    height: 100%;
    @media screen and (max-width: 780px) {
      padding-top: 4vh;
      height: auto;
    }
    img {
      width: 100%;
      height: 100%;
    }
  }
}

.coverPanel {
  position: relative;
  top: 28vh;
  width: 100%;
  text-align: left;

  @media screen and (max-width: 780px) {
    top: 120px;
  }
}

.article {
  position: relative;
  top: 0;
  width: 100%;
  height: 85vh;
}

.coverPage {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

/*=======封面效果======*/

.coverTitle {
  height: 2em;
  font-size: 1.5em;
  letter-spacing: 0.5em;
  color: RGB(192, 164, 144);
}

.coverIntro {
  position: relative;
  top: 0;
  //left:10vw;
  height: 16vh;
  color: white;
  .detailButton {
    position: relative;
    margin-left: 10vw;
    margin-top: 0.8rem;
    z-index: 0;
  }
  .info {
    margin-left: 10vw;
    width: 60vw;
    position: relative;
    margin-top: 1vh;
    font-size: 2.5vw;
    @media screen and (max-width: 780px) {
      width: 70vw;
      font-size: 26px;
      line-height: 34px;
    }
  }
  .time {
    margin-left: 10vw;
    width: 40vw;
    position: relative;
    margin-top: 2vh;
    font-size: 1.7vw;
    @media screen and (max-width: 780px) {
      font-size: 22px;
    }
  }
  @media screen and (max-width: 780px) {
    top: 30px;
    width: 100vw;
  }
}

/*-------封面End------*/

.notelist {
  position: relative;
  height: auto;
  zoom: 1;
  margin-top: 1rem;
  margin-bottom: 1rem;
  .titleText {
    position: relative;
    text-align: center;
    width: 100%;
    height: 1rem;
    @media screen and (max-width: 780px) {
      border-bottom: solid 1px #f2f2f2;
    }
    span {
      position: relative;
      top: 0.6rem;
      margin: 0 auto;
    }
    .arrow1 {
      //width: 22px;
      //height: 15px;
      top: 0.5rem;
    }
  }
}

.arrow1 {
  background-image: url('/static/image/downArrow.png');
  background-repeat: no-repeat;
  position: relative;
  background-size: 100% 100%;
  -moz-background-size: 100% 100%;
  width: 0.3rem;
  height: 0.2rem;
  top: -0.1rem;
}

$note_i_w: 180px;
$note_sp_w: 7vw;
$note_font: 0.3;
$line-height: 0.4;
.notepanel {
  width: 100%;
  margin: 0.5rem auto 0 auto;
  overflow: hidden;
  zoom: 1;
}

.note {
  position: relative;
  border-bottom: dashed 1px #f2f2f2;
  width: 80%;
  height: 4rem;
  margin: 1rem auto 0 auto;
  overflow: hidden;

  @media screen and (max-width: 780px) {
    height: 2.8rem;
    width: 100%;
    margin: 0 auto;
    border-bottom: 1px #eee solid;
    padding-top: 0.4rem;
  }

  .noteImage {
    position: relative;
    float: right;
    width: 3.2rem;
    height: 2.4rem;
    overflow: hidden;

    border-radius: 2px;
    @media screen and (max-width: 780px) {
      width: 35%;
      right: 5%;
      height: 70%;
      border-radius: 0;
    }

    img {
      width: auto;
      height: 100%;
      @media screen and (max-width: 780px) {
        //width: 100%;
        //height: auto;
      }
    }
  }
  .noteInfo {
    position: relative;
    float: left;
    width: 75%;
    padding-right: 0.8rem;
    box-sizing: border-box;
    overflow: hidden;
    font-size: 0.4rem;
    @media screen and (max-width: 780px) {
      width: 60%;
      padding: 0.1rem 0.3rem;
      font-size: 0.32rem;
    }
    .title {
      position: relative;
      display: block;
      //height: 10vh;
      overflow: hidden;
      @media screen and (max-width: 780px) {
        width: 100vw;
      }
    }
    .noteAbout {
      position: relative;
      width: 100%;
      margin-top: 0.4rem;
      line-height: #{$line-height}rem;
      font-size: #{$note_font}rem;
      height: #{$note_font * (1 + $line-height) * 3}rem;
      overflow: hidden;
      @media screen and (max-width: 780px) {
        //width: 90vw;
        //display: block; /* Fallback for non-webkit */
        //display: -webkit-box;
        //max-width: 90vw;
        //overflow: hidden;
        //height: #{$note_font*(1+$line-height)*5}rem;
        //text-overflow: ellipsis;
        display: none;
      }
    }
    .noteTime {
      position: relative;
      color: $lightGray;
      margin-top: 0.1rem;
      font-size: 0.25rem;
      @media screen and (max-width: 780px) {
        margin-top: 3vh;
      }
    }
  }
}

.cover {
  position: absolute;
  width: 100%;
  height: 90vh;
  float: left;

  overflow: hidden;
  img {
    width: 100%;
    height: 100%;
  }
  @media screen and (max-width: 780px) {
    height: 600px;
    overflow: hidden;
    img {
      position: relative;
      width: auto;
      height: 100%;
      left: -80vw;
    }
  }
}

.titleText {
  font-size: 0.4rem;
  font-weight: bold;
  font-family: $songti;
}

.underCover {
  position: absolute;
  width: 100%;
  top: 80vh;
  text-align: center;
  margin: 0 auto;
  z-index: 0;
  div {
    margin: 0 auto;
    div {
      position: relative;
      width: 15px;
      height: 1px;
      left: -5px;
      top: -20px;
      margin-top: 9px;
      background-color: #c0a490;
      transform: rotate(30deg);
    }
    div:before {
      content: '';
      position: absolute;
      width: 15px;
      left: 11px;
      top: -6.5px;
      height: 1px;
      background-color: #c0a490;
      transform: rotate(120deg);
    }
  }
  @media screen and (max-width: 780px) {
    position: relative;
    left: 0;
    top: 0vh;
  }
}

@media screen and (max-width: 780px) {
  .article {
    left: 0;
    height: auto;
  }
  #news {
    width: 100%;
  }
}
